<?php
/**
 * Created by PhpStorm.
 * User: xutao
 * Date: 2018/8/7
 * Time: 10:07
 */
namespace app\common\model;
use think\Model;

class ImgModel extends Model{
    protected $table = 'think_img';
    protected $autoWriteTimestamp = 'datetime';

    public function getPhotoEquipmentAttr($value){
        $data = [
            1=>'手机',
            2=>'相机'
        ];
        return $data[$value];
    }
}